#define _CRT_SECURE_NO_WARNINGS
#include<windows.h>
#include<stdio.h>
const char* dev = "/dev/pts/1";
int main()
{
    FILE* fl = fopen(dev, "w");
    if (fl == NULL)
    {
        perror("fopen faliure!!!");
        return -1;
    }
    int cnt = 10;
    while (cnt--)
    {
        fprintf(fl, "%d\n", cnt);
        Sleep(1);
    }
    fclose(fl);
    return 0;
}
